﻿using Tinter.Models;
using Tinter.Models.Modules.Membership;
using Tinter.Infrastructure.Data.UnitOfWork;

namespace Tinter.Infrastructure.Data.Modules.Membership
{
    public class UserRepository : Repository<AspNetUser>, IUserRepository
    {
        #region Members

        private IMainUnitOfWork unitOfWork;

        #endregion

        #region Constructor

        /// <summary>
        /// Create a new instance of this repository
        /// </summary>
        /// <param name="unitOfWork">Associated unit of work</param>
        public UserRepository(IMainUnitOfWork unitOfWork)
            : base(unitOfWork)
        {
            this.unitOfWork = unitOfWork;
        }

        #endregion

        #region Overridden Methods

        public override void Add(AspNetUser item)
        {
            base.Add(item);
        }

        #endregion
    }
}
